﻿<?xml version="1.0" encoding="utf-8"?>

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <CustomAction Id="WikiExtensions.Ribbon.EditingTools" Location="CommandUI.Ribbon" Sequence="20">

    <CommandUIExtension>

      <CommandUIDefinitions>

        <CommandUIDefinition Location="Ribbon.WikiPageTab.EditAndCheckout.Controls._children">
     
          <Button Id="WikiExtensions.Ribbon.InsertCodeBlock" Alt="Notify hello" Sequence="5" Command="WikiExtensions.Command.InsertCodeBlock" Image16by16="/_layouts/images/NoteBoard_16x16.png" Image32by32="/_layouts/images/NoteBoard_32x32.png" Description="Uses the notification area to display a message." LabelText="Notify hello" TemplateAlias="o1" />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="WikiExtensions.Command.InsertCodeBlock" CommandAction="javascript:$('#Ew-OpenSnippedModalBox').click()" />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
</Elements>